import Http from '../utils/request'

class HolidayService extends Http{
    /**
     * 根据月份查询当月节假日情况
     * @param month:月份，比如201809
     */
    queryDayByMonth=(month)=>{
        return this.get(`/date/month?month=${month}`)
    }

    /**
     * 设置节假日状态
     */
    holidayMannger=(data)=>{
        return this.post('/date/holiday',data)
    }
}

export default new HolidayService()
